package Classes;


import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.io.*;

public interface HInterface extends Remote {
    
    /**Server Date and Time**/
    public String getCurrentTime() throws RemoteException;
    public String getCurrentDate() throws RemoteException;
    public String getDBDate() throws RemoteException;
    public String getCurrDate() throws RemoteException;
    public String getCurrYear() throws RemoteException;
    public String getYear() throws RemoteException;
    public String getRealYear() throws Exception;    
    public String getPrevYear() throws Exception;  
    public int getToday() throws Exception;
    public int getPast() throws Exception;
    public int getNext() throws Exception;
   
    public boolean checkUserStatus(String username) throws RemoteException;
    public void clientActivity(String username, String activity) throws RemoteException;
    public ArrayList<Object> getList(String table)throws Exception;
    public boolean login(String username, String password, boolean status) throws RemoteException ;
    public void logout(String username) throws RemoteException;
   
    //add division, add departmen, add unit
    public String getdivision(Division t) throws Exception;
    public String getdept(Department t) throws Exception;
    public String getunit(Unit t) throws Exception;
    public String getCommendation(Commendation t) throws Exception;
    public String getViolation(Violation t) throws Exception; 
    public String getEduc(Education t) throws Exception;
    
    //user LOGIN
    public Object get(String table, String a, String b)throws Exception;
    public ArrayList<Object> divList() throws Exception;
    public ArrayList<Object> dividList(String sm) throws Exception;
    public ArrayList<Object> uList(String sm) throws Exception;
    public ArrayList<Object> educList(String sm) throws Exception;
}
